﻿using System;
using System.ComponentModel;

namespace PropertyChangedEventHandler
{
    internal class CustomizedObject : INotifyPropertyChanged
    {

        private DateTime dateTime;

        public DateTime Date
        {

            get { return dateTime; }

            set
            {
                dateTime = value;

                NotifyPropertyChanged("Date");


            }
        }

        private void NotifyPropertyChanged(string v)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(v));
            }
        }

        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
    }
}